<template>
  <div>

    <el-row>
      <el-col :span="2">
        &nbsp
      </el-col>
      <el-col :span="8" id="Coach1">
        <div >
          <i class="el-icon-user"></i>我的场馆
        </div>
        <el-card :body-style="{ padding: '0px' }">
          <img :src="myVenue.venueImage" class="image" >
          <div style="padding: 14px;">
            <div>
              场馆名：<span>{{ myVenue.venueName }}</span> &nbsp&nbsp&nbsp&nbsp
              经营状态：<span>{{myVenue.businessState == 1 ? "正常营业" : "歇业中"}}</span>
            </div>
            <div >
              <i class="el-icon-mobile-phone"></i>我的职位：
              {{myVenue.coachTyId == 1 ? "团课教练":"私课教练"}}
            </div>
            <div>
              我的主教：
              <span class="time">{{myVenue.coachTyName}}</span>
              入职时间：
              <span class="time">{{myVenue.joinDate}}</span>
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :span="1">
        &nbsp
      </el-col>
      <el-col :span="8">
        <el-card :body-style="{ padding: '0px' }">
        <div >
          场馆许可证<img :src="myVenue.venueLicense" class="image" >
          场馆建立时间：{{myVenue.createTime}}<br />
          场馆详细地址：{{myVenue.venueAddress}}<br />
          经度：{{myVenue.longitude}}<br />
          纬度：{{myVenue.latitude}}<br />
          营业起始时间：{{myVenue.businessStartTime}}<br />
          场馆面积：{{myVenue.area}}㎡<br />
          场馆简介：{{myVenue.venueDetails}}<br/>
        </div>
        </el-card>
      </el-col>
    </el-row>


  </div>
</template>

<script>
  export default {
    name: "CoachMyVenue",
    data() {
      return {
        myVenue: {},
      }
    },
    methods: {
      loadCoachMyVenue() {
        this.$http.get("/venue/yVenueCoach/loadCoachMyVenue").then(resp => {
          this.myVenue = resp.data.data;
          console.log(this.venue)
        })
      }
    },
    created() {
      this.loadCoachMyVenue();
    }
  }
</script>

<style>
  .image {
    width: 100%;
    height: 400px;
    display: block;
  }
</style>
